package service;

import entity.ClockInRecord;

import javax.naming.NamingException;
import java.sql.SQLException;
import java.util.Date;
import java.util.List;

public interface ClockService {
    // 保存打卡记录
    boolean saveCheckIn(ClockInRecord record) throws SQLException, NamingException, ClassNotFoundException;

    // 检查今日是否已打卡
    boolean hasCheckedInToday(String studentId) throws SQLException, NamingException, ClassNotFoundException;

     List<ClockInRecord> getClockRecords(Date startDate, Date endDate) throws SQLException, ClassNotFoundException;


}
